<?php

/**
 * Partner filter form.
 *
 * @package    billingSystem
 * @subpackage filter
 * @author     Your name here
 * @version    SVN: $Id: sfDoctrineFormFilterTemplate.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class PartnerFormFilter extends BasePartnerFormFilter
{
          public function configure()
          {
              $this->widgetSchema['product']=new sfWidgetFormInputText(array('label'=>'product id'));
              $this->validatorSchema['product'] = new sfValidatorPass(array ('required' => false));
          }
        
        function addProductColumnQuery($q , $field, $value)
        {
                return Doctrine_Core::getTable('Partner')->searchByProductid($q,$value);
        }
}
